import request from '@/utils/request'

// 查询订单匹配规则 列表
export function listNcOrderMatchingRules(query) {
  return request({
    url: '/base/NcOrderMatchingRules/list',
    method: 'get',
    params: query
  })
}

// 查询订单匹配规则 详细
export function getNcOrderMatchingRules(id) {
  return request({
    url: '/base/NcOrderMatchingRules/' + id,
    method: 'get'
  })
}

// 新增订单匹配规则 
export function addNcOrderMatchingRules(data) {
  return request({
    url: '/base/NcOrderMatchingRules',
    method: 'post',
    data: data
  })
}

// 修改订单匹配规则 
export function updateNcOrderMatchingRules(data) {
  return request({
    url: '/base/NcOrderMatchingRules',
    method: 'put',
    data: data
  })
}

// 删除订单匹配规则 
export function delNcOrderMatchingRules(id) {
  return request({
    url: '/base/NcOrderMatchingRules/' + id,
    method: 'delete'
  })
}
